package sia.knights;

/**
 * Created by dongl on 2017/12/28.
 */
public class BraveKnight implements Knight {

    private Quest quest;

    //构造函数依赖注入
    public BraveKnight(Quest quest)
    {

        this.quest = quest;
    }

    @Override
    public void embarkOnQuest( ) {
        quest.embark();
    }
}
